package com.rongxun.hbwallet.mvp.contract;

import com.rongxun.base.IBase;
import com.rongxun.hbwallet.model.Response;
import com.rongxun.hbwallet.model.bean.ImageCode;
import com.rongxun.hbwallet.model.bean.User;

import io.reactivex.Observable;
import okhttp3.RequestBody;

/**
 * 创建者     庄丰泽
 * 创建时间   2018/8/13 9:55
 * 描述
 */
public interface ICodeLogin extends IBase{
    interface IView extends IBase.IView {
        void showLogin();
        void showCodeimage(ImageCode code);
        void codeTextTiTimte();
    }

    interface IPresenter extends IBase.IPresenter {
        void login(String phone,String smsCode,String invitCode);

        void getCode();

        void getMobileNumber(String captchaCode,String captchaId,String country,String mobile);
        void saveUserInfo(User user);


    }

    interface IModel extends IBase.IModel{
        Observable<Response<ImageCode>> checkImgVerificationCode();
        Observable<Response<User>> getMobileCode(RequestBody route);
        Observable<Response<User>> Login(RequestBody route);
    }
}
